<template>
  <div class="wrap">
    <header>
      <span @click="go">&lt;</span>
      <h3>收藏</h3>
    </header>
    <main>
      <div class="cang1">
        <div class="canghome">
          <img src="../img/home.png" alt />
          <div class="font">
            <h4>汤臣一品</h4>
            <p>43平/2室 1厅/远洋新天地</p>
            <span>2000/月</span>
            <p>
              <span class="xiaoqu">小区</span>
            </p>
          </div>
        </div>
      </div>
    </main>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  created() {},
  methods: {
    go() {
      this.$router.go(-1);
    }
  }
};
</script>

<style lang="scss">
.wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
header {
  width: 100%;
  height: 50px;
  background: rgb(72, 72, 225);
  display: flex;
  width: 100%;
  height: 50px;
  align-items: center;
  text-align: center;
  span {
    padding-left: 5%;
  }
  h3 {
    padding-left: 35%;
  }
}
main {
  flex: 1;
  overflow-y: scroll;
  .cang1 {
    .canghome {
      display: flex;
      padding: 10px;
      img {
        width: 120px;
        height: 80px;
      }
      .font {
        padding-left: 20px;
        p {
          font-size: 14px;
          color: #999;
        }
        span {
          color: orange;
          font-size: 15px;
        }
        .xiaoqu {
          text-align: center;
          line-height: 20px;
          width: 50px;
          height: 20px;
          font-size: 14px;
          background: #f1f1f1;
          color: #999;
          padding: 0 13px;
        }
      }
    }
  }
}
</style>